package com.jshan.base.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "数据表字段定义")
public class TableFieldDTO {
    @Schema(description = "字段名")
    private String name;

    @Schema(description = "字段类型")
    private String type;

    @Schema(description = "字段长度")
    private Integer length;

    @Schema(description = "是否主键")
    private Boolean primaryKey;

    @Schema(description = "是否自增")
    private Boolean autoIncrement;

    @Schema(description = "是否非空")
    private Boolean notNull;

    @Schema(description = "默认值")
    private String defaultValue;

    @Schema(description = "字段注释")
    private String comment;
}